package com.service.tiku;

/**
 * Created by Hexun on 2017/8/1 0001.
 */
public class TikuService {
    /**
     * @Author:HeXun
     * @Description: 进行最简单的后缀名判断是否为图片，可能被00截断绕过
     * @Date: 2017/8/1 0001
     */
    public boolean isImg(String name) {
        if (name.endsWith("img") || name.endsWith("png") || name.endsWith("jpg")) {
            return true;
        }
        return false;
    }
}
